package com.cmcc.example.face.noSdk.common.vo.request;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.Serializable;
import java.util.Base64;
import java.util.List;

/**
 * <p>
 * <name>FaceDensityDetectResponseVO</name>
 * 客流统计返回对象
 * </p >
 *
 * @author arabira
 * @version 1.0 2020-04-07
 * @since 1.0
 */
@Data
public class FaceDensityDetectVO implements Serializable {

    private static final long serialVersionUID = -6787610596533309204L;
    private String imageFile;

    public FaceDensityDetectVO(MultipartFile image) throws IOException {
        this.imageFile = Base64.getEncoder().encodeToString(image.getBytes());
    }
}